/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 头部样式 */
.ctrip-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 20px;
}

.logo img {
    height: 40px;
}

.nav-main {
    flex: 1;
    margin-left: 40px;
}

.nav-main ul {
    display: flex;
}

.nav-main li {
    margin-right: 30px;
}

.nav-main a {
    font-size: 16px;
    font-weight: 500;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

.nav-main a i {
    margin-right: 5px;
    font-size: 18px;
    color: #0091ff;
}

.nav-main a.active {
    color: #0091ff;
    border-bottom: 3px solid #0091ff;
}

.user-area {
    display: flex;
    align-items: center;
}

.login {
    margin-right: 20px;
    color: #666;
}

.app-download {
    background-color: #0091ff;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}

.search-item {
    flex: 1;
    min-width: 200px;
    position: relative;
}

.search-item label {
    display: block;
    margin-bottom: 5px;
}

.search-item input,
.search-item select {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
}

.search-btn {
    padding: 10px 20px;
    background-color: #f2f4f6;
    color: #fff;
    border: none;
    cursor: pointer;
    align-self: flex-end;
}

.hot-cities {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    width: auto;
    z-index: 1000;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hot-city {
    display: inline-block;
    padding: 5px 10px;
    cursor: pointer;
}

.hot-city:hover {
    background-color: #f0f0f0;
}

.search-section {
    background-color: #edeeef;
    padding: 20px 0 30px;
    margin-bottom: 30px;
}

.search-tabs {
    margin-bottom: 20px;
}

.search-tabs ul {
    display: flex;
}

.search-tabs li {
    color: white;
    padding: 8px 20px;
    margin-right: 5px;
    cursor: pointer;
    border-radius: 4px 4px 0 0;
}

.search-tabs li.active {
    background-color: white;
    color: #0091ff;
}

.search-box {
    background-color: white;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.search-row {
    display: flex;
    align-items: center;
}

.search-item {
    flex: 1;
    margin-right: 15px;
}

.search-item:last-child {
    margin-right: 0;
}

.search-item label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.search-item input,
.search-item select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn {
    background-color: #ff9900;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-left: 15px;
}

.search-btn:hover {
    background-color: #ff8c00;
}

/*酒店样式hang*/
/* 搜索区域整体布局 */
.search-layout {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

/* 左侧搜索表单样式 */
.search-left {
    width: 54%;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 右侧轮播图样式 - 完全独立的一块 */
.search-right {
    width: 42%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
}

/* 轮播图容器 */
.swiper-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* 图片样式 - 缩小至合适大小 */
.slider-image {
    width: 100%;
    height: 600px;
    /* 固定高度 */
    object-fit: cover;
    display: block;
}

/* 轮播图信息 */
.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
}

/* 搜索表单内部样式 */
.search-item {
    margin-bottom: 20px;
}

.search-item label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.search-item input,
.search-item select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.hot-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hot-city {
    padding: 6px 12px;
    background: #f5f5f5;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.hot-city:hover {
    background: #e0f7fa;
    color: #00acc1;
}

.search-btn {
    width: 100%;
    padding: 14px;
    background: #ff9a14;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-layout {
        flex-direction: column;
    }

    .search-left,
    .search-right {
        width: 100%;
    }

    .slider-image {
        height: 250px;
    }
}

/* 内容区域样式 */
.section-title {
    font-size: 24px;
    margin: 30px 0 20px;
    color: #333;
    font-weight: 500;
}

/* 促销活动 */
.promotion-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-gap: 15px;
}

.promotion-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 200px;
}

.promotion-item.big {
    grid-row: span 1;
}

.promotion-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promotion-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px;
    color: white;
}

.promotion-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 热门目的地 */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 15px;
}

.destination-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 180px;
}

.destination-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.destination-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 15px;
    color: white;
}

.destination-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

/* 特价酒店 */
.hotel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 20px;
}

.hotel-card {
    background-color: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hotel-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.hotel-info {
    padding: 15px;
}

.hotel-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.rating {
    color: #ff9900;
    margin-bottom: 10px;
}

.rating span {
    color: #666;
    margin-left: 5px;
}

.location {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.location i {
    color: #0091ff;
    margin-right: 5px;
}

.price {
    display: flex;
    align-items: center;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 10px;
}

.current-price {
    font-size: 24px;
    color: #ff6600;
    font-weight: bold;
    margin-right: 10px;
}

.discount {
    background-color: #ff6600;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
}

/* 页脚样式 */
.ctrip-footer {
    background-color: #333;
    color: #ccc;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
    margin-bottom: 30px;
}

.link-group h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 15px;
}

.link-group ul li {
    margin-bottom: 10px;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

.social-links a {
    color: #ccc;
    font-size: 20px;
    margin-left: 15px;
}

.social-links a:hover {
    color: white;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 992px) {
    .header-top {
        flex-wrap: wrap;
        height: auto;
        padding: 15px;
    }

    .nav-main {
        order: 3;
        width: 100%;
        margin: 15px 0 0;
    }

    .nav-main ul {
        flex-wrap: wrap;
    }

    .nav-main li {
        margin: 0 15px 10px 0;
    }

    .search-row {
        flex-wrap: wrap;
    }

    .search-item {
        flex: 0 0 100%;
        margin: 0 0 15px;
    }

    .search-btn {
        width: 100%;
        margin: 0;
    }

    .promotion-grid,
    .destination-grid,
    .hotel-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .promotion-item {
        height: 150px;
    }
}

@media (max-width: 576px) {
    .user-area {
        width: 100%;
        margin-top: 15px;
        justify-content: space-between;
    }

    .hotel-info h3 {
        font-size: 16px;
    }

    .current-price {
        font-size: 20px;
    }
}

.results-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.hotel-card {
    display: flex;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hotel-card img {
    width: 200px;
    height: 150px;
    object-fit: cover;
}

.hotel-info {
    padding: 16px;
    flex: 1;
}

.hotel-info h3 {
    margin: 0;
    font-size: 20px;
}

.hotel-info .location {
    color: #888;
    font-size: 14px;
    margin: 6px 0;
}

.hotel-info .stars {
    color: #f5a623;
    margin-bottom: 10px;
}

.hotel-info .price {
    color: #e60012;
    font-size: 18px;
    font-weight: bold;
    margin-top: 8px;
}

.search-summary {
    font-size: 18px;
    margin-bottom: 20px;
}

/* 小箭头样式 */
/* 小箭头初始半透明 */
.swiper-button-next,
.swiper-button-prev {
    color: #fff;
    /* 箭头颜色白色 */
    opacity: 0.3;
    /* 初始透明度30% */
    transition: opacity 0.3s ease;
    /* 透明度平滑过渡 */
}

/* 鼠标悬停在轮播图上时，箭头变得明显 */
.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
    opacity: 1;
    /* 悬停时变为100%不透明 */
}